<div class="settings edit">
	
	<h3><?php echo __('Edit Settings') ?></h3>
	
	<form action="" method="post">
		<div class="tabs">
			<ul>
				<?php foreach($configKeys as $groupName => $group): ?>
				<li><a href="#<?php echo $groupName ?>"><?php echo $groupName; ?></a></li>
				<?php endforeach; ?>
			</ul>
			<?php foreach($configKeys as $groupName => $group): ?>
			<div id="<?php echo $groupName ?>">
				<?php foreach($group as $key): ?>
				<?php $keyName = $groupName.".".$key; ?>
				<div>
					<label class="label" for="<?php echo $keyName; ?>"><?php echo $key; ?>:</label>
					<input type="text" id="<?php echo $keyName; ?>" class="inputHuge" name="config[<?php echo $keyName; ?>]" value="<?php echo isset($settings[$keyName]) ? $settings[$keyName] : ""; ?>" />
				</div>
				<?php endforeach; ?>
			</div>
			<?php endforeach; ?>
			<div>
				<input id="submit" type="submit" class="submit" value="<?php echo __d('cms', 'Save'); ?>" />
				<a href="<?php echo $this->Html->url(array('action' => 'index')); ?>" class="button"><?php echo __('Cancel'); ?></a>
			</div>
		</div>
	</form>
	
</div>
